package com.mrx.commons.task.config;

import com.mrx.commons.mail.MailHelper;
import com.mrx.commons.task.ScheduleTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;

/**
 * @author Mr.X
 * @since 2023-12-08 13:43
 **/
public class XScheduleTaskConfig {

    @Bean
    @Autowired(required = false)
    public ScheduleTaskService scheduleTaskService(MailHelper mailHelper) {
        return new ScheduleTaskService(mailHelper);
    }

}
